package zhangfengs.controller;

import zhangfengs.entity.ZhangFengSEntity;
import zhangfengs.service.ZhangFengSService;

import javax.annotation.Resource;
import java.util.List;

public class ZhangFengSController {
    List<ZhangFengSEntity> list = null;

    String name = null;
    @Resource
    ZhangFengSService zhangFengSservice;

    public String queryPage(){
        list =zhangFengSservice.queryPage(name);
        return "queryPage";
    }
    //@Resource @Autowired 作用相同 去spring容器中到bean实例
    //@Service @Component 向spring 容器中放入bean（类的对象）实例


    public List<ZhangFengSEntity> getList() {
        return list;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setList(List<ZhangFengSEntity> list) {
        this.list = list;
    }
}
